package jp.sourceforge.akjrcp.text_douga.video;

import java.io.File;

import jp.sourceforge.akjrcp.text_douga.VideoWriter;

public abstract class AbstractVideoWriter implements VideoWriter{
	protected int maxFrame;
	protected int writed;
	protected File workingDir;
	protected String frameHeader="";
	public int getMaxFrame() {
		return maxFrame;
	}

	public void setMaxFrame(int maxFrame) {
		this.maxFrame = maxFrame;
	}

	public int getWrited() {
		return writed;
	}

	public void setWrited(int writed) {
		this.writed = writed;
	}
	
	public File getWorkingDir() {
		return workingDir;
	}

	public void setWorkingDir(File workingDir) {
		this.workingDir = workingDir;
	}
	
	public File getWorkingFrameFile(int index){
		return new File(workingDir.getAbsolutePath()+"\\"+VideoUtils.toFileName(frameHeader,index,5,"jpg"));
	}
}
